﻿        @{
    var _newpage = Request["_newpage"] == "true" || ViewBag._newpage == "true";
}
        <div class="profile-bar" style="@(_newpage ? "display:none;" : "")">
            <div class="float-left">
                <span class="icon-heart2"></span>欢迎访问三爱医疗随访平台。
                @Html.Partial("CurrentTimeShow")
            </div>
            <div class="float-right" style="white-space: nowrap">
                @Html.Partial("_LogOnPartial")
                &nbsp;|&nbsp;
                @if (SiteUser != null)
                {
                    if (!User.IsInRole("Admin"))
                    {
                    @Ajax.ActionLink("个人信息", User.IsInRole("Doctor") ? "DrEdit" : "RecuperEdit", new { ID = SiteUser.UserId }, new AjaxOptions() { LoadingElementId = "OnLoadingSpan", UpdateTargetId = "dialogbox", OnComplete = User.IsInRole("Doctor") ? "showDialog('医生信息');" : "showDialog('患者信息');", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" });
                    }
                    else
                    {
                    @Ajax.ActionLink("个人信息", "AdminEdit", new { ID = SiteUser.UserId }, new AjaxOptions() { LoadingElementId = "OnLoadingSpan", UpdateTargetId = "dialogbox", OnComplete = "showDialog('管理员信息');", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" });
                    @:&nbsp;|&nbsp;
                    @Ajax.ActionLink("系统设置", "SysConfig", new AjaxOptions() { LoadingElementId = "OnLoadingSpan", UpdateTargetId = "dialogbox", OnComplete = "showDialog('系统设置');", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" });
                    }
                    @:&nbsp;|&nbsp;
                    if (User.IsInRole("Doctor"))
                    {
                    <span class="inlineblock" id="helperlink">
                    <a href="#" onclick="$('#helperlink').show();return(false);">使用帮助… </a>
                    <span 
                            style="padding: 2px; background-color: #535353; display: none; position: absolute;">
                            <a target="_blank" href="@Url.Content("~/Content/Guide/Doctor/随访手册--医生用-20131023.pdf")">
                                医生随访手册</a><br />
                            <a target="_blank" href="@Url.Content("~/Content/Guide/Doctor/随访手册--宣教护士用-20131022.pdf")">
                                宣教护士随访手册</a><br />
                            <a target="_blank" href="@Url.Content("~/Content/Guide/Doctor/随访手册--录入人员用-20131024.pdf")">
                                录入人员随访手册</a> </span>
                    </span>
                    <script type="text/javascript">
                        $("#helperlink span").show();
                        $("#helperlink span").hide();
                        $("#helperlink").mouseenter(function () {
                            $(this).children("span").slideDown();
                        });
                        $("#helperlink").mouseleave(function () {
                            $(this).children("span").hide();
                        });
                    </script>
                    }
                }
                &nbsp;|&nbsp; <a href="#Add to favorite" onclick="SiteJs_AddFav();return(false)">收藏站点</a>
                
            </div>
            <div class="sysmsg">
            </div>
        </div>